package com.shou.mapper;

import com.shou.pojo.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ActivityMapper {
    boolean addActivity(Activity activity);

    boolean updateActivity(Activity activity);

    boolean deleteActivity(int activityId);

    boolean enrollActivity(int activityId, int studentId);

    List<Activity> getAllActivities();

    // 其他数据库操作方法...

    List<Activity> getActivityById();
}
